
class_name TableCommonDefine

static var eCTOp_None = 0
static var eCTOp_Assign = 1
static var eCTOp_Alloc = 2
static var eCTOp_Release = 3
static var eCTOp_Update = 4
static var eCTOp_Insert = 5
static var eCTOp_Delete = 6
static var eCTOp_Count = 7


enum EDataDefineType {

	eDDT_Other =0,
	eDDT_Player =1,
	eDDT_Playermail =2,
	eDDT_Globalmail =3,
	eDDT_Pub =4,
	eDDT_Rank =5,
	eDDT_Count =6,
};

enum EPlayerProperty {
	ePP_SevenDayLogin = 0,
	ePP_SevenDayTask = 1,
	ePP_CharConst = 2,
	ePP_CharBase = 3,
	ePP_MaterialBag = 4,
	ePP_BagItem = 5,
	ePP_ClassBagItem = 6,
	ePP_ClassDressedItem = 7,
	ePP_Inventory = 8,
	ePP_PlayerMoney = 9,
	ePP_PlayerSkill = 10,
	ePP_CharFunctionTime = 11,
	ePP_PlayerScene = 12,
	ePP_TaskInfo = 13,
	ePP_Pet = 14,
	ePP_Count = 15,

};

enum EOtherDataID {
	eOD_AccountInfo = 15,
	eOD_FunctionTime = 16,
	eOD_ForbidIP = 17,
	eOD_GameSetting = 18,
	eOD_GameServerInfo = 19,
	eOD_RuntimeData = 20,
	eOD_PlayerSysMail = 21,
	eOD_MailDes = 22,
	eOD_PubPlayerInfo = 23,
	eOD_Ranks = 24,
	eOD_RankPlayerInfo = 25,
	eOD_ChargeFlow = 26,
	eOD_RewardFlow = 27,
	eOD_NoticeFlow = 28,

};

enum ECharLen {
    eCL_AccountName = 99,
    eCL_CharName = 22,
    eCL_RegisterIp = 64,
    eCL_ForbidLoginReason = 128,
    eCL_ForbidChatReason = 128,
    eCL_CurNation = 64,
    eCL_CurPlatform = 64,
    eCL_UnlockPortraitArray = 100,
    eCL_IP = 64,
    eCL_MaterialItem = 300,
    eCL_AttachAttrs = 9,
    eCL_UnlockSPID = 10,
    eCL_Location = 128,
    eCL_TransPoint = 128,
    eCL_FromCharDisplayName = 40,
    eCL_Subject = 100,
    eCL_Content = 255,
    eCL_SubjectParam = 100,
    eCL_ContentParam = 100,
    eCL_Attachment = 1024,
    eCL_NeedLang = 64,
    eCL_NeedNation = 128,
    eCL_NeedPlatform = 128,
    eCL_Skills = 64,
    eCL_ItemID = 5,
    eCL_OrderNo = 99,
    eCL_Rewards = 1024,
    eCL_Info = 128,
    eCL_NoticeID = 64,
    eCL_Notice = 1024,

}

enum MaxRowElem {
    MAX_COUNT_BAGITEM = 300,
    MAX_COUNT_CLASSBAGITEM = 600,
    MAX_COUNT_CLASSDRESSEDITEM = 100,
    MAX_COUNT_INVENTORY = 400,
    MAX_COUNT_PLAYERMONEY = 24,
    MAX_COUNT_PLAYERSKILL = 100,
    MAX_COUNT_CHARFUNCTIONTIME = 64,
    MAX_COUNT_PLAYERSCENE = 16,
    MAX_COUNT_TASKINFO = 150,
    MAX_COUNT_PET = 99,

}

static var AllTables = {
    EPlayerProperty.ePP_SevenDayLogin : "SevenDayLogin",
    EPlayerProperty.ePP_SevenDayTask : "SevenDayTask",
    EPlayerProperty.ePP_CharConst : "CharConst",
    EPlayerProperty.ePP_CharBase : "CharBase",
    EPlayerProperty.ePP_MaterialBag : "MaterialBag",
    EPlayerProperty.ePP_BagItem : "BagItem",
    EPlayerProperty.ePP_ClassBagItem : "ClassBagItem",
    EPlayerProperty.ePP_ClassDressedItem : "ClassDressedItem",
    EPlayerProperty.ePP_Inventory : "Inventory",
    EPlayerProperty.ePP_PlayerMoney : "PlayerMoney",
    EPlayerProperty.ePP_PlayerSkill : "PlayerSkill",
    EPlayerProperty.ePP_CharFunctionTime : "CharFunctionTime",
    EPlayerProperty.ePP_PlayerScene : "PlayerScene",
    EPlayerProperty.ePP_TaskInfo : "TaskInfo",
    EPlayerProperty.ePP_Pet : "Pet",

    EOtherDataID.eOD_AccountInfo : "AccountInfo",
    EOtherDataID.eOD_FunctionTime : "FunctionTime",
    EOtherDataID.eOD_ForbidIP : "ForbidIP",
    EOtherDataID.eOD_GameSetting : "GameSetting",
    EOtherDataID.eOD_GameServerInfo : "GameServerInfo",
    EOtherDataID.eOD_RuntimeData : "RuntimeData",
    EOtherDataID.eOD_PlayerSysMail : "PlayerSysMail",
    EOtherDataID.eOD_MailDes : "MailDes",
    EOtherDataID.eOD_PubPlayerInfo : "PubPlayerInfo",
    EOtherDataID.eOD_Ranks : "Ranks",
    EOtherDataID.eOD_RankPlayerInfo : "RankPlayerInfo",
    EOtherDataID.eOD_ChargeFlow : "ChargeFlow",
    EOtherDataID.eOD_RewardFlow : "RewardFlow",
    EOtherDataID.eOD_NoticeFlow : "NoticeFlow",

}
